package com.ashin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: Ashin
 * @Date: 2021/1/22
 * @Description: com.ashin.controller
 * @Version: 1.0.0
 */
@Controller
public class HelloController {


    @ResponseBody
    @RequestMapping("/hello")
    public Map<String, Object> hello() {
        Map<String, Object> map = new HashMap<>();
        map.put("h", "d");
        map.put("name", "zjh");

        return map;
    }

}
